package com.xyg.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document( collection = "products" )
public class Product {
    @Id
    private String id;
    @Field( "title" )
    private String title;
    @Field( "procity" )
    private String procity;
    @Field( "price" )
    private BigDecimal price;
    @Field( "realSales" )
    private String realSales;
    @Field( "pic_path" )
    private String picPath;

}